<div class="noidung">
<a href="<?php echo $this->url(array("controller"=>"index","action"=>"add"));?>">Insert a new book</a>
<div class="khung-search">
<span>Book search</span><input type="text"/>
<select class="se-ser">
 <option value="name">Name</option>
 <option value="author">Author</option>
</select>
<input type="submit" value="Search" class="button-search" style="padding-right:0px;"/>
</div>

<table id="rounded-corner" summary="007 Major IT Companies' Profit">
    <thead>
    	<tr>
        	<th scope="col" class="rounded"> Book ID </th>
            <th scope="col" class="rounded" style="width: 200px;"> Book Name</th>
            <th scope="col" class="rounded">Author Name </th>
    
            <th scope="col" class="rounded">Action</th>
        </tr>
    </thead>
      
    <tbody>
    
    <?php if(isset($this->books)):foreach($this->books as $book):; ?>
       	 <tr>
             <td><?= $book["bk_id"];?></td>
        	 <td><?php echo  $book["bk_name"];?></td>
            <td><?php echo $book["au_name"];?></td>
           
            </td>
			<td>
            <a href="<?php echo $this->url(array("controller"=>"index","action"=>"detail","id"=>$book["bk_id"]));// $this->baseUrl("index/detail/id/".$book["bk_id"]);?>">View Details</a> | 
            <a href="<?php echo $this->url(array("controller"=>"index","action"=>"edit","id"=>$book["bk_id"]));?>"><img border="0" src="<?php echo $this->DirImg;?>/user_edit.png" /></a>
           <a href="<?php echo $this->url(array("controller"=>"index","action"=>"delete","id"=>$book["bk_id"]));?>" class="ask"><img border="0" src="<?php echo $this->DirImg;?>/trash.png" /></a>
           </td>
        </tr>
       <?php endforeach;endif; ?>  


    </tbody>
</table>
